<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head><title>MyIsern - Edit Collaboration</title></head>
<body>
MyIsern 2.0
  <table border="0">
  <tr valign="center">
    <td width="10"></td>
    <td align="center">
       <stripes:link href="/index.jsp">
         Home
       </stripes:link>
    </td>
    <td width="10"></td>
    <td align="center">
       <stripes:link href="/selectResearcher.jsp">
         Researchers
       </stripes:link>
    </td>
    <td width="10"></td>
    <td align="center">
       <stripes:link href="/selectOrganization.jsp">
         Organizations
       </stripes:link>
    </td>
    <td width="10"></td>
    <td align="center">
      <stripes:link href="/selectCollaboration.jsp">
        Collaborations
      </stripes:link>
    </td>
    <td width="10"></td>
    <td align="center">
       <stripes:link href="/reportDataIntegrity.jsp">
         Data Semantic Check
       </stripes:link>
    </td>
  </tr>  
</table>
  
<hr align="left" width="900">
Edit ISERN Collaboration:
  <stripes:errors action="/EditCollaboration.action"/>
  <stripes:form id="EditCollaborationForm" action="/EditCollaboration.action" focus="">
     <table>
        <tr>
           <td>Name:</td>
           <td width="150"><stripes:text name="name"/></td>
        </tr>
        <tr>
           <td>Description:</td>
           <td><stripes:text name="description"/></td>
        </tr>
        <tr> 
           <td>Collaboration Organizations:</td>
          <td>
           <c:forEach var="org" items="${actionBean.collaboratingOrganizations}">
           <c:if test="${not empty org}">
             <stripes:checkbox id="org_${org}" name="collaboratingOrganizations" value="${org}" />
             <stripes:label for="org_${org}">${org}</stripes:label>
             <br/>
           </c:if>
           </c:forEach>
           </td>
        </tr>
        <tr>
           <td>
           </td>
           <td>
              <stripes:select size="1" name="newCollaboratingOrganization">
              <stripes:option/>
               <stripes:options-collection collection="${organizations}"/>
             </stripes:select>
           </td>
           <td style="text-align: left;" width="30">
             <stripes:submit name="addCollaboratingOrganizaton" value="Add"/>
           </td>
        </tr>
        <tr> 
           <td>Collaboration Types:</td>
          <td>
           <c:forEach var="coltype" items="${actionBean.collaborationTypes}">
           <c:if test="${not empty coltype}">
             <stripes:checkbox id="coltype_${coltype}" name="collaborationTypes" value="${coltype}" />
             <stripes:label for="coltype_${coltype}">${coltype}</stripes:label>
             <br/>
           </c:if>
           </c:forEach>
           </td>
        </tr>
        <tr>
           <td>
           </td>
           <td>
             <stripes:text name="newCollaborationType"/>
           </td>
           <td style="text-align: left;" width="30">
             <stripes:submit name="addCollaborationType" value="Add"/>
           </td>
        </tr>
        <tr> 
           <td>Outcome Types:</td>
          <td>
           <c:forEach var="outtype" items="${actionBean.outcomeTypes}">
           <c:if test="${not empty outtype}">
             <stripes:checkbox id="outtype_${outtype}" name="outcomeTypes" value="${outtype}" />
             <stripes:label for="outtype_${outtype}">${outtype}</stripes:label>
             <br/>
           </c:if>
           </c:forEach>
           </td>
        </tr>
        <tr>
           <td>
           </td>
           <td>
             <stripes:text name="newOutcomeType"/>
           </td>
           <td style="text-align: left;" width="30">
             <stripes:submit name="addOutcomeType" value="Add"/>
           </td>
        </tr>
        <tr> 
          <td>Years:</td>
          <td>
            <stripes:select size="5" name="years" value="${actionBean.years}" multiple="true">
              <stripes:options-collection collection="${actionBean.allYears}"/>
            </stripes:select>
          </td> 
        </tr>
        <tr>
             <td style="text-align: center;">
             <stripes:submit name="save" value="Save"/>
           </td>
              <td style="text-align: center;">
              <stripes:submit name="cancel" value="Cancel"/>
           </td>
        </tr>
     </table>
   </stripes:form>
 
 
 
</body>
</html>

